#include<stdio.h>
#include<string.h>

struct contact {
	char name[15];
	char phone[10];
};

int main()
{
	int i,n,y;

	char x[5];
	struct contact s[10];
    i = 0;
	do {
		printf("Please input your name and phone number\n");
		scanf("%s",s[i].name);
		scanf("%s",s[i].phone);
		printf("Name : %s\n",s[i].name);
		printf("Phone number : %s\n",s[i].phone);
		i++;
		printf("Do you want to continue this program? y/n\n");
		scanf("%s",x);
	}
	while(x[0] != 'n');
	printf(">>>Good Bye<<<");
	return 0;
}